<?php

    include '../../Include/IncludeLogin.php';

    $dbAluminioDao = new DBAluminioDAO();
    $plantillaOPC = new Panel( "../View/Html/OpcionAluminio.html" );

    $hBlock = $plantillaOPC->setBlock( "BLQ_CAL_INFO" );

    try {
        $aluminioLogica = FabricaComando::crearListaTiposAluminio();
        $listaTipo = $aluminioLogica->hacer();
    } catch ( UsuarioLogicaException $Ex ) {
        new ExceptionHandler( $Ex );
    }

    if ( $listaTipo != false ) {
        foreach ( $listaTipo as $tipo ){

            $plantillaOPC->add( $tipo );
            $plantillaOPC->concat($hBlock);

        }
        }

    $plantillaOPC->show();

?>
